<template>
	<view>
		<view class=""
			style=" background: #fff; position: fixed; width: 90%;padding-top: 60rpx; margin: auto; height: 100rpx; display: flex; align-items: center; ">
			<image @click="toReturn" style="width: 50rpx; height: 50rpx; margin-left: 20rpx;" src="../../../static/images/goBack.png">
			</image>
			<span style="margin-left: 20rpx;">{{title}}</span>
		</view>
		<view class="" style="padding-top: 200rpx; width: 90%;margin: auto;">
			<text v-html="Vhtml"></text>
		</view>
	</view>
</template>

<script>
	import {getContent}from '@/http/api.js'
	export default {
		data() {
			return {
				typeID:'',
				Vhtml:'',
				title:''
			};
		},
		onLoad(e) { 
		this.typeID=e.id
		this.Content()
		},
		methods:{
			// 返回上一页
			toReturn() {
				uni.navigateBack();
			},
			Content(){
				let data={
					"type": this.typeID
				}
				getContent(data).then((res)=>{
					this.title= res[1].data.data[0].title
					this.Vhtml= res[1].data.data[0].content
					console.log(res[1].data.data[0],"用户协议");
				})
			}
		},
	}
</script>

<style lang="scss">

</style>
